package com.dks.controller;

import java.util.*;


import com.dks.models.AliyunSendSmsLogs;
import com.dks.repository.IAliyunSendSmsLogsRepository;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class AliyunSendSmsLogsController{

    private IAliyunSendSmsLogsRepository aliyunSendSmsLogsRepository;

    @Autowired
    public AliyunSendSmsLogsController(final IAliyunSendSmsLogsRepository aliyunSendSmsLogsRepositoryIn){
        this.aliyunSendSmsLogsRepository = aliyunSendSmsLogsRepositoryIn;
    }

//    @PostMapping("aliyun-send-sms-logs")
//    public String insert(AliyunSendSmsLogs aliyunSendSmsLogs) {
//        return ResultFactory.resultMsg(Commond.R_SUCCESS, aliyunSendSmsLogsRepository.insert(aliyunSendSmsLogs), "");
//    }
//
//    @PutMapping("aliyun-send-sms-logs")
//    public String update(AliyunSendSmsLogs aliyunSendSmsLogs) {
//        return ResultFactory.resultMsg(Commond.R_SUCCESS, aliyunSendSmsLogsRepository.update(aliyunSendSmsLogs), "");
//    }
//
//    @DeleteMapping("aliyun-send-sms-logs/{id}")
//    public String delete(@PathVariable Integer id) {
//        return ResultFactory.resultMsg(Commond.R_SUCCESS, aliyunSendSmsLogsRepository.delete(id), "");
//    }
//
//    @GetMapping("aliyun-send-sms-logs/{id}")
//    public String select(@PathVariable Integer id){
//        return ResultFactory.resultMsg(Commond.R_SUCCESS, aliyunSendSmsLogsRepository.select(id), "");
//    }
//
//    @GetMapping("aliyun-send-sms-logs/count")
//    public String cntByMap(@RequestParam Map<String,Object> map){
//        return ResultFactory.resultMsg(Commond.R_SUCCESS, aliyunSendSmsLogsRepository.cntByMap(map), "");
//    }
//
//    @GetMapping("aliyun-send-sms-logs/ids")
//    public String getByMap(@RequestParam Map<String,Object> map){
//        return ResultFactory.resultMsg(Commond.R_SUCCESS, aliyunSendSmsLogsRepository.getByMap(map), "");
//    }
//
//    @GetMapping("aliyun-send-sms-logs/list")
//    public String getByMapList(@RequestParam Map<String,Object> map){
//        return ResultFactory.resultMsg(Commond.R_SUCCESS, aliyunSendSmsLogsRepository.getByMapList(map), "");
//    }
//
//    @PutMapping("aliyun-send-sms-logs/by-code")
//    public String updateByCode(AliyunSendSmsLogs aliyunSendSmsLogs) {
//        return ResultFactory.resultMsg(Commond.R_SUCCESS, aliyunSendSmsLogsRepository.updateByCode(aliyunSendSmsLogs), "");
//    }
//
//    @GetMapping("aliyun-send-sms-logs/by-code")
//    public String selectByBfCode(@RequestParam(value = "bfCode") String bfCode){
//        return ResultFactory.resultMsg(Commond.R_SUCCESS, aliyunSendSmsLogsRepository.selectByBfCode(bfCode), "");
//    }
}
